package com.jtpay.payresulthelper.constant;

import com.jtpay.payresulthelper.BuildConfig;
import com.jtpay.payresulthelper.db.AliPayColumn;
import com.jtpay.payresulthelper.db.AliQueryOrderColumn;

public class HooKConstant {
    //ali package name
    public static final String PACKAGE_NAME_ALIPAY = "com.eg.android.AlipayGphone";

    // action
    //服务器主动查询订单,应该和正常订单一样返回就可以
    public static final String ACTION_QUERY_ORDER = "com.jtpay.product.QUERY_ORDER";
    //程序主动补单查询
    public static final String ACTION_AUTO_QUERY_ORDER = "com.jtpay.product.AUTO_QUERY_ORDER";
    //生产二维码，待定
    public static final String ACTION_MAKE_QR_CODE = "com.jtpay.product.MAKE_QRCODE";
    //获取订单详情失败
    public static final String ACTION_DETAIL_FAIL_INFO = "com.jtpay.product.DETAIL_FAIL_INFO";
    //出现其它错误
    public static final String ACTION_ERROR_INFO = "com.jtpay.product.ERROR_INFO";
    //开始模拟点击
    public static final String ACTION_SIMULATE_CLICK_START = "com.jtpay.product.SIMULATE_CLICK_START";
    //继续模拟点击
    public static final String ACTION_SIMULATE_CLICK_CONTINUE = "com.jtpay.product.SIMULATE_CLICK_CONTINUE";
    //停止模拟点击
    public static final String ACTION_SIMULATE_CLICK_STOP = "com.jtpay.product.SIMULATE_CLICK_STOP";
    //开始打点
    public static final String ACTION_START_DOT = "com.jtpay.product.START_DOT";
    //停止打点
    public static final String ACTION_STOP_DOT = "com.jtpay.product.STOP_DOT";

    //设置阿里账号
    public static final String ACTION_SET_ALI_ACCOUNT = "com.jtpay.product.SET_ALI_ACCOUNT";


    // reflect class name
    public static final String CLASS_QUERY_LIST_REQ = "com.alipay.mobilebill.common.service.model.pb.QueryListReq";
    public static final String CLASS_QUERY_LIST_RES = "com.alipay.mobilebill.common.service.model.pb.QueryListRes";
    public static final String CLASS_SINGLE_LIST_ITEM = "com.alipay.mobilebill.common.service.model.pb.SingleListItem";
    public static final String CLASS_PAGING_CONDITION = "com.alipay.mobilebill.common.service.model.pb.PagingCondition";
    public static final String CLASS_SECURITY = "com.alipay.mobile.base.security.CI";
    public static final String CLASS_LOGIN = "com.alipay.mobile.quinox.LauncherActivity";
    public static final String CLASS_SERVICE_DAO = "com.alipay.android.phone.messageboxstatic.biz.dao.ServiceDao";
    //qrcode class used
    public static final String CLASS_CONSULT_SET_AMOUNT_REQ = "com.alipay.transferprod.rpc.req.ConsultSetAmountReq";
    public static final String CLASS_RPCSERVICEIMPL = "com.alipay.mobile.framework.service.common.impl.RpcServiceImpl";
    public static final String CLASS_COLLECTMONEYRPC = "com.alipay.transferprod.rpc.CollectMoneyRpc";
    //security to relogin
    public static final String CLASS_ACTIVITY_DEVICE_LOCK_ACTIVITY_SHELL = "com.alipay.android.widget.security.ui.DeviceLockActivityShell";


    // ali patch dex class
    public static final String CLASS_GET_BILL_LIST_DATA_RUNNABLE = "com.alipay.mobile.bill.list.ui.rpc.GetBillListDataRunnable";
    // so patch name
    public static final String SO_FILE_NAME_ALI = "lib/libandroid-phone-wallet-billlist.so";

    //Webview JS args
    public static final String WEBVIEW_JS_BILL = "function getElementsByClassName(className){ var ele=[],all=document.getElementsByTagName('*'); for(var i=0;i<all.length;i++){ if(all[i].className==className){ ele[ele.length]=all[i].innerHTML;  } } return ele; } getElementsByClassName('price-sum')[0] + '||'+ getElementsByClassName('common-content').join('||');";
    public static final String CLASS_H5_WEBVIEW = "com.alipay.mobile.nebulacore.web.H5WebView";

    //intent extra key
    public static final String EXTRA_KEY_ERROR = "extra_key_error";
    //阿里账号
    public static final String EXTRA_KEY_ALI_ACCOUNT = "extra_key_ali_account";
    //传递开始时间给应用
    public static final String EXTRA_KEY_PAY_MODEL = "extra_key_pay_model";

    //处理临时数据，服务器查单的数据库
    public static final String EXTRA_KEY_TEMP_ORDER = "extra_key_temp_order";

    //data type
    public static final int TYPE_ORDER = 0X1 << 2;
    public static final int TYPE_ORDER_ITEM = 0X1 << 3;

    // provider
    public static final String CONTENT_URI = "content://" + BuildConfig.APPLICATION_ID + ".provider/" + AliPayColumn._TABLE_NAME;
    public static final String CONTENT_TEMP_URI = "content://" + BuildConfig.APPLICATION_ID + ".provider/" + AliPayColumn._TABLE_TEMP_NAME;
    public static final String CONTENT_TASK_URI = "content://" + BuildConfig.APPLICATION_ID + ".provider/" + AliQueryOrderColumn._TABLE_NAME;


    public static final String _AUTHORITY = BuildConfig.APPLICATION_ID + ".provider";

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.com.jtpay.payresulthelper";
    public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/com.jtpay.payresulthelper";

}
